package org.aceor.mddal.config.datasource;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

import java.util.List;

/**
 * Created by lxue on 16/3/27.
 */
@XStreamAlias("group")
public class GroupNode {

    @XStreamAsAttribute
    private String id;

    @XStreamImplicit(itemFieldName = "atom")
    private List<AtomNode> atoms;

    public List<AtomNode> getAtoms() {
        return atoms;
    }

    public void setAtoms(List<AtomNode> atoms) {
        this.atoms = atoms;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}
